﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WeFrame.AutoCode
{
    /// <summary>
    /// 表列对象实体
    /// </summary>
    class ColumnEntity
    {

        private string name;//列名

        /// <summary>
        /// 
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string type;//类型

        public string Type
        {
            get { return type; }
            set { type = value; }
        }
        private int maxLength;//占用字节数

        public int MaxLength
        {
            get { return maxLength; }
            set { maxLength = value; }
        }
        private bool isNull;//是否为空

        public bool IsNull
        {
            get { return isNull; }
            set { isNull = value; }
        }
        private bool isIdentity;//是否自增

        public bool IsIdentity
        {
            get { return isIdentity; }
            set { isIdentity = value; }
        }
        private bool isPrimaryKey;//是否主键

        public bool IsPrimaryKey
        {
            get { return isPrimaryKey; }
            set { isPrimaryKey = value; }
        }

        private string description;//备注

        
        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        private string defaultValue;//默认值

        public string DefaultValue
        {
            get { return defaultValue; }
            set { defaultValue = value; }
        }


    }
}
